<template>
  <div>
    123
  </div>
</template>
<script>
import SingleUpload from "@/components/upload/singleUpload";
import editor from "@/components/editor";

export default {
  data() {
    return {
      flag: false,
      saveBtnDisabled: false, // 保存按钮是否禁用
      courseInfo: {
        title: "a",
        subjectId: "1", //分类id
        teacherId: "1",
        lessonNum: 0,
        description: "aa",
        cover:
          "https://thirdwx.qlogo.cn/mmopen/vi_32/WdyceLy74u6USOT2icJFpGzeLDTK3MJzFjr8eQ7M609cNQiagH0ibErlw0KNicYNS9exgJJEB82CSQ9mKpJSxwQB4w/132",
        price: 100,
      },
      courseId: "108",
      dataListLoading: false,
      dataRule: {
        subjectId: [
          {
            required: true,
            message: "分类id不能为空",
            trigger: "blur",
          },
        ],
        title: [
          {
            required: true,
            message: "课程标题不能为空",
            trigger: "blur",
          },
        ],
        price: [
          {
            required: true,
            message: "课程销售价格，设置为0则可免费观看不能为空",
            trigger: "blur",
          },
        ],
        lessonNum: [
          {
            required: true,
            message: "总课时不能为空",
            trigger: "blur",
          },
        ],
        cover: [
          {
            required: true,
            message: "课程封面图片路径不能为空",
            trigger: "blur",
          },
        ],
        status: [
          {
            required: true,
            message: "课程状态 Draft未发布  Normal已发布不能为空",
            trigger: "blur",
          },
        ],
      },
    };
  },
  components: {
    SingleUpload,
    editor,
    dept,
  },
  created() {},
  methods: {},
};
</script>
